<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let answer;
        while (true) {
            answer = prompt("你爱我吗？");
            if (answer === "爱") {
                alert("我也爱你！");
                break;
            }
        }
    </script>
</body>

</html>